package com.ray.auth.system.service;

import com.ray.auth.system.table.entity.Work;
import com.zjhc.flyhong.common.function.operator.LoginUser;
import com.zjhc.flyhong.common.function.operator.PageDto;
import com.zjhc.flyhong.common.web.Result;

public interface WorkService {

	/**
	 * 新增用户
	 * @param params
	 * @param user
	 * @return
	 */
	Result<Object> addWork(Work params, LoginUser user);
	/**
	 * 用户查询
	 * @param id
	 * @param user
	 * @return
	 */


	Work queryWork(String id, LoginUser user);

	/**
	 * 用户修改
	 * @param params
	 * @param user
	 * @return
	 */
	Result<Object> updateWork(Work params, LoginUser user);
	/**
	 * 用户删除
	 * @param id
	 * @param user
	 * @return
	 */
	Result<Object> deleteWork(String id, LoginUser user);
	/**
	 * 分页查询
	 * @param params
	 * @param page
	 * @param user
	 * @return
	 */
	PageDto<Work> queryWork(Work params, PageDto<Work> page, LoginUser user);
	/**
	 * 分页查询 个人需要做的任务
	 * @param work
	 * @param dto
	 * @param loginUser
	 * @return
	 */
	PageDto<Work> queryMyTodoWork(Work work, PageDto<Work> dto, LoginUser loginUser);
	
	

}
